package com.wlyuan.open.scanner.utils.enums.transport;

import com.wlyuan.core.marker.NamedValue;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author lijing
 * @description 运单状态对应关系
 */
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
@Getter
public enum TransportReceiptReviewEnum implements NamedValue<Integer> {

    /**
     * 无
     */
    NO(0, 0, "无"),

    /**
     * 复核
     */
    YES(5, 1, "复核"),
    ;

    private final Integer value;
    private final Integer newValue;
    private final String name;

    public static boolean isYes(Integer val) {
        return YES.getValue().equals(val);
    }

}
